/**
 * Copyright (C), 2018-2018
 * FileName: TicketController  * Author:   lcsos
 * Date:     2018/10/9 21:15
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.springcloud.providerticket.controller;

import com.springcloud.providerticket.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈一句话功能简述〉<br>
 *     将接口暴露出来
 *  SpringCloud在整合为服务时通过轻量级http进行通信
 *
 * @author Lcs
 * @create 2018/10/9 
 * @since 1.0.0
 */
@RestController
public class TicketController {

    @Autowired
    TicketService ticketService;

    @GetMapping("/ticket")
    public String getTicket(){
        return ticketService.getTicket();
    }
}
